POV-Ray : Newsgroups : povray.general : unexpected rotation result : Re: unexpected rotation result Server Time
8 Aug 2024 08:20:02 EDT (-0400)
  Re: unexpected rotation result  
From: Gail Shaw
Date: 5 Feb 2001 05:36:06
Message: <3a7e8216@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote in message
news:3a7e7b74$1@news.povray.org...
> I came across this one the other day (don't know how I'd missed this
> "feature" before).
>
> Basically, I expected the two following rotations to be identical:
>
> rotate y * - 45 + 45
> rotate y * (- 45 + 45)
>

I would guess that pov is doing the multiplication first then adding
45.  Hence it's doing rotate <0,-45,0> + 45.
whereas the brackets in the second force pov
to evaluate the -45+45 first and multiply with y second.

Gail
********************************************************************
* gsh### [at] monotixcoza              * System.dat not found.         *
* http://www.rucus.ru.ac.za/~gail/ * Reformat hard drive Y)es O)k  *
********************************************************************
* If at first you don't succeed, call it version 1.0               *
********************************************************************


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.